package com.wolfeyes.system.service;

import com.wolfeyes.system.domain.LoginUser;
import com.wolfeyes.system.domain.SysMovie;
import com.wolfeyes.system.domain.SysUser;
import com.wolfeyes.system.domain.vo.SysUserVo;

import java.util.List;

/**
 * @see Talk is cheap, Show me the code. -- Linus Torvalds
 * @title 系统用户信息服务层-接口
 * @author yanyljava
 * @create 2022-01-12 21:42
 */
public interface SysUserService {
	
    List<SysUser> findAll(SysUser sysUser);

    SysUser findById(Long id);

    SysUser findByName(String userName);

    int add(SysUser sysUser);

    int update(SysUser sysUser);

    int delete(Long[] ids);

    LoginUser login(SysUserVo sysUserVo);

    LoginUser findLoginUser(SysUserVo sysUserVo);

    boolean isUserNameUnique(String userName, Long userId);
}
